package hospital.model.hosp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import hospital.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@ApiModel(description = "doctor")
@Document("doctor")
public class Doctor  {
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "医生职称")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "医生名字")
    @TableField("docname")
    private String docname;

    @ApiModelProperty(value = "医生擅长")
    @TableField("skill")
    private String skill;
}
